package com.dl.mall.entity.user;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * @author DL
 * @create 2022-04-13 19:47
 */
@Accessors(chain = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "OrderInfo",description = "订单信息实体类")
public class OrderInfo implements Serializable {
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "订单id",example = "")
    private String orderId;
    @ApiModelProperty(value = "规格id",example = "")
    private String specsId;
    @ApiModelProperty(value = "购买数量",example = "")
    private Integer total;
}
